package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.core.domain.entity.SealTempjur;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SealTempjurMapper;
import com.ruoyi.system.service.ISealTempjurService;

/**
 * 印章转授Service业务层处理
 * 
 * @author ess
 * @date 2021-11-03
 */
@Service
public class SealTempjurServiceImpl implements ISealTempjurService 
{
    @Autowired
    private SealTempjurMapper sealTempjurMapper;

    /**
     * 查询印章转授管理
     * 
     * @param tempJurId 印章转授管理主键
     * @return 印章转授管理
     */
    @Override
    public SealTempjur selectSealTempjurByTempJurId(String tempJurId)
    {
        return sealTempjurMapper.selectSealTempjurByTempJurId(tempJurId);
    }

    /**
     * 查询印章转授管理列表
     * 
     * @param sealTempjur 印章转授管理
     * @return 印章转授管理
     */
    @Override
    public List<SealTempjur> selectSealTempjurList(SealTempjur sealTempjur)
    {
        return sealTempjurMapper.selectSealTempjurList(sealTempjur);
    }

    /**
     * 新增印章转授管理
     * 
     * @param sealTempjur 印章转授管理
     * @return 结果
     */
    @Override
    public int insertSealTempjur(SealTempjur sealTempjur)
    {
        return sealTempjurMapper.insertSealTempjur(sealTempjur);
    }

    /**
     * 修改印章转授管理
     * 
     * @param sealTempjur 印章转授管理
     * @return 结果
     */
    @Override
    public int updateSealTempjur(SealTempjur sealTempjur)
    {
        return sealTempjurMapper.updateSealTempjur(sealTempjur);
    }

    /**
     * 批量删除印章转授管理
     * 
     * @param tempJurIds 需要删除的印章转授管理主键
     * @return 结果
     */
    @Override
    public int deleteSealTempjurByTempJurIds(String[] tempJurIds)
    {
        return sealTempjurMapper.deleteSealTempjurByTempJurIds(tempJurIds);
    }

    /**
     * 删除印章转授管理信息
     * 
     * @param tempJurId 印章转授管理主键
     * @return 结果
     */
    @Override
    public int deleteSealTempjurByTempJurId(String tempJurId)
    {
        return sealTempjurMapper.deleteSealTempjurByTempJurId(tempJurId);
    }
}
